package Message.Login
{
	import Framework.Serialize.*;
	import Message.Public.*;
	
	public class SLoginReturn extends Object
	{
		public var playerId:int;
		public var name:String;
		public var sessionKey:SSessionKey;
		public var urls:Array;
		
		public function SLoginReturn()
		{
		}
		
		public function __write(stream:SerializeStream) : void
		{
			stream.writeInt(this.playerId);
			stream.writeString(this.name);
			this.sessionKey.__write(stream);
			SeqUrlHelper.write(stream, this.urls);;
		}
		
		public function __read(stream:SerializeStream) : void
		{
			this.playerId = stream.readInt();
			this.name = stream.readString();
			this.sessionKey = new SSessionKey();
			this.sessionKey.__read(stream);
			this.urls = SeqUrlHelper.read(stream);
		}
	}
}
